<%@ page contentType="text/html;charset=UTF-8" %>
<%@taglib prefix="shiro" uri="/WEB-INF/tlds/shiros.tld" %>  
<html>
	<head>
		<title>welcome page</title>
	</head>
	<body>
		欢迎您：${user.username }
		<input style="background-color:yellow;" type="button" onclick="loginOut()" value="退出登录" />
		 
		<br/>
		<shiro:hasPermission name="sys:user:save">  
			<input type="button" value="新增"/><br/>
		</shiro:hasPermission>
		<shiro:hasPermission name="sys:user:list"> 
		
			<input type="button" value="查看"/><br/>
		</shiro:hasPermission>
		<shiro:hasPermission name="sys:user:delete">
			<input type="button" value="删除	"/><br/>
		</shiro:hasPermission>
		<shiro:hasPermission name="sys:user:update">
			<input type="button" value="修改"/><br/>
		</shiro:hasPermission>
		
		
	</body>
	
<script type="text/javascript">
	//退出登录
	function loginOut(){
		location.href = "/a/logout";
	}
</script>
	
</html>